package com.tingyuge.base.jdk.jvm;

import java.util.HashMap;
import java.util.Random;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created by xiaodao
 * date: 2020/4/6
 */
public class TestCpu100 {

    public static void main(String[] args) {
        ExecutorService executorService = Executors.newFixedThreadPool(20);
        executorService.submit(()->{
            while (true){
                HashMap<Object, Object> objectObjectHashMap = new HashMap<>();
                objectObjectHashMap.put(new Random().nextInt(29),"12");
                System.out.println("1111");

            }
        });

    }
}
